package com.lz.gamll.feign.product;

import com.lz.gamll.feign.product.fallBack.CategoryFeignClientFallBack;
import com.lz.gmall.common.result.Result;
import com.lz.gmall.product.vo.CategoryVo;


import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

import java.util.List;

@FeignClient(value = "service-product",fallback = CategoryFeignClientFallBack.class)
public interface CategoryFeignClient {

    @GetMapping("/api/inner/product/findAllCategory")
    public Result<List<CategoryVo>> findAllCategory();
}
